
<template tag="以下文档内容为hycli自动生成">
  <div>
  <el-dialog
    v-model="conf.visible"
    :title="title"
    draggable
    align-center="true"
    width="68%"
    :close-on-click-modal="false"

  >
    <el-tabs v-model="conf.selected">
      <el-tab-pane label="详情" name="aaasi">
<el-row :gutter="24" style="font-size: 0.7rem;">
  <el-col :span="4" class="text-right" style="min-height:26px">名称:</el-col>
  <el-col :span="8" v-text="view.name||'-'" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">图标:</el-col>
  <el-col :span="8" v-text="view.icon||'-'" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">类型:</el-col>
  <el-col :span="8" v-text="view.menu_type_label" style="min-height:26px" ></el-col>
  <el-col :span="12"></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">地址标识:</el-col>
  <el-col :span="20" style="min-height:26px" v-html="'<pre>'+view.url+'</pre>'" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">展开:</el-col>
  <el-col :span="8" v-text="view.is_open_label" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">排序:</el-col>
  <el-col :span="8" v-text="view.sortrank||'-'" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">状态:</el-col>
  <el-col :span="8" v-text="view.status_label" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">创建时间:</el-col>
  <el-col :span="8" v-text="view.create_time||'-'" style="min-height:26px" ></el-col>
</el-row>
      </el-tab-pane>
    </el-tabs>
    <template #footer>
      <span style="height: 60px"> </span>
    </template>
  </el-dialog>
</div>
</template>
<script>
import gantt from "@/views/cmpnts/gantt.vue"
export default {
   components: {
    gantt,
  },
  data() {
    return {
        conf:{
        visible:false,
        
        selected:"aaasi",
      },
      title:"功能菜单详情",
      form:{},
      view: {
        name:"",
        icon:"",
        menu_type:"",
        url:"",
        is_open:"",
        sortrank:"",
        status:"",
        create_time:"",
        },
      }
  },
  methods: {
  show_cmpnt_aaash(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    form.is_open = "0"
    form.menu_type = "1"
    form.parent = "0"
    form.sortrank = "1"
    form.status = "0"
    this.$refs.cmpnt_aaash.show(form)
  },
  show_cmpnt_aaasd(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    form.icon = ""
    form.name = ""
    form.parent = fm.id
    form.url = ""
    this.$refs.cmpnt_aaasd.show(form)
  },
  show_cmpnt_aaasg(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaasg.show(form)
  },
  show_cmpnt_aaase(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaase.show(form)
  },
  show_cmpnt_aaasf(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaasf.show_aaasf(form)
  },
 show(form) {
    this.conf.visible = true
    this.form = form
   let that = this;
   this.$theia.http
      .get("/sso/system/menu",form)
      .then((res) => {
        let item = Object.assign({}, res)
        item.menu_type_label = that.$theia.enum.getName("menu_type",item.menu_type)
        item.is_open_label = that.$theia.enum.getName("bool",item.is_open)
        item.status_label = that.$theia.enum.getName("status",item.status)  
        item.url = (item.url||"")
        item.create_time = that.$theia.str.dateFormat(item.create_time,'MM/dd')
        that.view = item
      })
      .catch((res) => {
        let code = res.response.status;
        let msg = `功能菜单查询失败(${code})`;
        that.$notify.error({ title: "失败", message: msg, duration: 5000 });
      });
  },
  },
};
</script>
<style scoped>
/deep/.el-step__title{
    font-size: 0.8rem;
}
.steps{
  margin-top:8px;
  margin-bottom:  16px;
}
</style>